import http from "@/utils/http/hub";

/**
 * 获取投诉分类
 * localNo
 * orderType 订单类型1=服务2=酒店
 */
export const getComplaintCategoryList = (
  params,
  config = {
    custom: {
      auth: true,
      loading: false,
    },
  }
) => {
  return http.get({
    url: `/order/complaintCategoryList`,
    params,
    config,
  });
};

/**
 * 发起投诉
 */
export const subComplaint = (
  params,
  config = {
    custom: {
      auth: true,
    },
  }
) => {
  return http.post({
    url: `/order/complaint`,
    params,
    config,
  });
};
